<?php
namespace Admin\Model;
use Think\Model\ViewModel;

class ExportViewModel extends ViewModel {
    public $viewFields = array(
    	'export'=>array('id','sequence','code_code'=>'code','date','number','receive','sender','status','del','customer_code','account_id'),
    	'code'=>array('goods_id','depot_id','supplier_id','price','_on'=>'export.code_code=code.code'), 
    	'goods'=>array('id'=>'goods_id','name'=>'goods_name','xinghao','guige','unit','_on'=>'code.goods_id=goods.id'),
    	'depot'=>array('id'=>'depot_id','name'=>'depot_name','_on'=>'code.depot_id=depot.id'), 
    	'supplier'=>array('id'=>'supplier_id','name'=>'supplier_name', '_on'=>'code.supplier_id=supplier.id'),
    	'customer'=>array('name'=>'customer_name','type'=>'customer_type', '_on'=>'export.customer_code=customer.customer_code')
	); 
}